<div class="photo-block">

    {|foreach from=$photoAlbumArray item=e key=value|}
    {|if $value == 0|}
        <div class="album-one">
            <div class="image">
                <a href="{|$e.url|}">
                    <img src="{|$e.image|}" width="400" height="350" alt="{|$e.name|}" title="{|$e.name|}" />
                </a>
            </div>
            <div class="album-name">
                <a href="{|$e.url|}">{|$e.name|}</a>
            </div>
        </div>
    {|elseif $value == 1|}
        <div class="album-two">
            <div class="image">
                <a href="{|$e.url|}">
                    <img src="{|$e.image|}" width="320" height="230" alt="{|$e.name|}" title="{|$e.name|}" />
                </a>
            </div>
            <div class="album-name">
                <a href="{|$e.url|}">{|$e.name|}</a>
            </div>
        </div>
    {|elseif $value == 2|}
        <div class="album-three">
            <div class="image">
                <a href="{|$e.url|}">
                    <img src="{|$e.image|}" width="159" height="119" alt="{|$e.name|}" title="{|$e.name|}" />
                </a>
            </div>
            <div class="album-name">
                <a href="{|$e.url|}"><a href="{|$e.url|}">{|$e.name|}</a>
            </div>
        </div>
    {|elseif $value == 3|}
        <div class="album-four">
            <div class="image">
                <a href="{|$e.url|}">
                    <img src="{|$e.image|}" width="160" height="119" alt="{|$e.name|}" title="{|$e.name|}" />
                </a>
            </div>
            <div class="album-name">
                <a href="{|$e.url|}">{|$e.name|}</a>
            </div>
        </div>
    {|/if|}




    {|/foreach|}

</div>